package com.syni.mdd.sjb.common.datatreaure.entity.vo.rp.dataBankBusiness;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.syni.mdd.sjb.common.component.utils.common.utils.StringUtils;
import com.syni.mdd.sjb.common.datatreaure.constants.Constants;
import lombok.Data;

@Data
public class NewDetailParamsRpVo {
    public final static Integer DEFAULT = 0;
    public final static Integer MESSAGE_TYPE_MDD_GROUP_BUY = 1; //觅东东团购订单
    public final static Integer MESSAGE_TYPE_MDD_GROUP_COUPON = 2;//觅东东买单订单
    public final static Integer MESSAGE_TYPE_MINAPP_ORDER = 3;//小程序订单
    public final static Integer BUSINESS_AUDIT_SUCCESS = 4;  //觅东东资质审核通过
    public final static Integer BUSINESS_AUDIT_FAIL = 5;  //觅东东资质审核未通过
    public final static Integer BUSINESS_PAID_CONFIRM = 6;  //支付宝uid确认
    public final static Integer BUSINESS_ERROR = 7;  //店铺报错
    public final static Integer BUSINESS_GROUP_AUDIT_SUCCESS = 8;  //团购审核通过
    public final static Integer BUSINESS_GROUP_AUDIT_FAIL = 9;//团购审核不通过
    public final static Integer BUSINESS_GROUP_FORCED_OFFLINE = 11; //团购后台下线
    public final static Integer BUSINESS_OFFLINE = 12; //店铺下架
    public final static Integer BUSINESS_MESSAGE_GROUP_DELETE = 13;  //群发消息被删除
    public final static Integer ORTHER_MES_QUAL_ERROR = 14;          //小程序资质异常
    public final static Integer ORTHER_MES_BASE_ERROR = 15;          //小程序基础信息错误
    public final static Integer ORTHER_MES_RELEASE_SUCCESS = 16;    //小程序创建成功
    public final static Integer ORTHER_MES_FEIGHT_CHARGE = 17;    //运费充值
    public final static Integer MARKETING_REALITY = 18;    //营销实况
    public final static Integer ORTHER_MES_SERVICE_PUR_RE = 19;    //服务购买提醒
    public final static Integer ORTHER_MES_SMS_PURCHASE = 20;    //短信购买提醒
    public final static Integer GROUP_DIVIDED_CONFIRM_CODE = 21;    //分账比例确认弹窗
    public final static Integer GROUP_REJECT_CANCEL_CODE = 22;    //商圈拒绝取消关联弹窗
    public final static Integer GROUP_CANCEL_SUCCESS_CODE = 23;    //取消关联商圈成功弹窗
    public final static Integer GROUP_CANCEL_APPLY_CODE = 24;    //取消关联申请弹窗
    public final static Integer GROUP_BIND_SUCCESS_CODE = 25;    //关联商圈成功弹窗
    public final static Integer APPLET_FAILED_PRINT_CODE = 26;    //小程序打单失败



    public static final int NO_ACTION = 0;
    public static final int JUMP_ACTION = 1;
    public static final int JUMP_INDEX = 2;

    public final static Integer BASE_ERROR_TIP_NAME = 1;
    public final static Integer BASE_ERROR_TIP_HEAD = 2;
    public final static Integer BASE_ERROR_TIP_INTROD = 3;
    private Integer messageType = 0;
    private Integer messageSecondType = 0;
    private Integer globalMessageType = 0;
    private Integer mddOrderId = 0;
    private Integer mddGroupBuyUseId = 0;
    private Integer businessId = 0;
    private Integer mddGroupBuyId = 0;
    private Integer baseDataErrorTip = BASE_ERROR_TIP_NAME;
    private Integer action = NO_ACTION;
    private String jumpUrl = "";
    private Integer status = Constants.COMMON_FLAG_FALSE_INT;
    private Integer mddDataBankServiceId = 0;
    private String groupData;
    private Integer channelId = 0;
    private String storeId = "";

    public void setStoreId(String storeId) {
        if(StringUtils.isNotBlank(storeId)) {
            this.storeId = storeId;
        }
    }

    @JsonIgnore
    private String appid;

    @Data
    public static class MddParams{
        public final static Integer BUSINESS_AUDIT_SUCCESS = 1;
        public final static Integer BUSINESS_AUDIT_FAIL = 2;
        public final static Integer BUSINESS_PAID_CONFIRM = 3;
        public final static Integer BUSINESS_ERROR = 4;
        public final static Integer BUSINESS_GROUP_AUDIT_SUCCESS = 5;
        public final static Integer BUSINESS_GROUP_AUDIT_FAIL = 6;
        public final static Integer BUSINESS_GROUP_FORCED_OFFLINE = 8;
        public final static Integer BUSINESS_OFFLINE = 9;
        public final static Integer BUSINESS_MESSAGE_GROUP_DELETE = 10;
        private Integer mddOrderId;
        private Integer mddGroupBuyUseId;
        private Integer mddOtherMessagesType;
        private Integer businessId;
    }

    @Data
    public static class MinAppParams{

        public final static Integer ORTHER_MES_QUAL_ERROR = 1;
        public final static Integer ORTHER_MES_BASE_ERROR = 2;
        public final static Integer ORTHER_MES_RELEASE_SUCCESS = 3;


        private Integer action = NO_ACTION;
        private String jumpUrl;
        private Integer minAppOtherMessagesType;
        private Integer baseDataErrorTip = BASE_ERROR_TIP_NAME;

    }
}
